package md.lanjing.com.module_mine.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;


import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.lxh.baselibray.base.XActivity;
import com.lxh.baselibray.constant.ARouterConfig;
import com.lxh.baselibray.util.CacheUtils;
import com.lxh.baselibray.util.SPUtils;

import butterknife.OnClick;
import md.lanjing.com.module_mine.R;
import md.lanjing.com.module_mine.R2;

import com.lxh.baselibray.constant.Constant;

/**
 * 帐户设置
 */
public class AccountSetActivity extends XActivity {


    @Override
    public void initData(Bundle savedInstanceState) {

    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_account_set;
    }

    @OnClick({R2.id.tv_modify_login_pwd, R2.id.tv_modify_deal_pwd, R2.id.btn_login_out})
    public void onViewClicked(View view) {
        int i = view.getId();
        if (i == R.id.tv_modify_login_pwd) {
            startActivity(new Intent(this, ModifyLoginPwdActivity.class));

        } else if (i == R.id.tv_modify_deal_pwd) {
            startActivity(new Intent(this, ModifyDealPwdActivity.class));

        } else if (i == R.id.btn_login_out) {
            CacheUtils.clearShareFCacheData();
            ARouter.getInstance().build(ARouterConfig.Home_login_act).navigation();
            finish();

        }
    }

}
